package com.wanxi.dao;

import com.wanxi.model.Manager;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ManagerDao {
    Manager findManagerByManagerNameAndPassword(Manager manager);

    List<Manager> findAllManager();

    Manager findManagerById(Manager manager);

    int addManager(Manager manager);

    Manager findManagerByName(Manager manager);

    Manager findManagerByIdAndPassword(Manager manager);

    int updatePassword(Manager manager);

    int deleteManager(Manager manager);

    int updateById(Manager manager);

    int updateEnable(Manager manager);

    List<Manager> findBySome(Manager manager);
}
